package com.me.experiment;

import java.io.File;

import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.me.example.Example_exp;

public class launch_experiment extends AndroidApplication {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        Bundle extras = getIntent().getExtras();
        int number = extras.getInt("s_number");

        AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
        cfg.useGL20 = false;
        
         
        initialize(new Example_exp(number), cfg);
        
        
        
    }
    
    public void onDestroy(){
    	super.onDestroy();
    	Intent intent = new Intent(this, Email.class);
		//intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
    }
}